package com.wcs.exam.controller.admin.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * Admin-后台操作日志表-编辑-请求参数
 * </p>
 *
 * @author wcs
 * @since 2024-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-后台操作日志表-编辑-请求参数")
public class AdminSysLogEditReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "system.sys.log.id.not.null")
    @Schema(description = "主键")
    private Long id;

    @NotNull(message = "system.sys.log.user.id.not.null")
    @Schema(description = "操作人ID")
    private Long userId;

    @NotBlank(message = "system.sys.log.operation.not.null")
    @Schema(description = "用户操作")
    private String operation;

    @NotBlank(message = "system.sys.log.method.not.null")
    @Schema(description = "请求方法")
    private String method;

    @NotBlank(message = "system.sys.log.path.not.null")
    @Schema(description = "请求路径")
    private String path;

    @NotBlank(message = "system.sys.log.content.not.null")
    @Schema(description = "请求参数")
    private String content;

    @NotBlank(message = "system.sys.log.login.ip.not.null")
    @Schema(description = "登录IP")
    private String loginIp;

    @NotBlank(message = "system.sys.log.country.not.null")
    @Schema(description = "国家")
    private String country;

    @NotBlank(message = "system.sys.log.province.not.null")
    @Schema(description = "省")
    private String province;

    @NotBlank(message = "system.sys.log.city.not.null")
    @Schema(description = "市")
    private String city;

    @NotBlank(message = "system.sys.log.browser.not.null")
    @Schema(description = "浏览器")
    private String browser;

    @NotBlank(message = "system.sys.log.os.not.null")
    @Schema(description = "操作系统")
    private String os;
}
